package com.bing.http;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Component
public class RestClient {

  @Autowired
  private RestTemplate restTemplate;

  public String postForObject(String url, Object request, Object... uriVariables) {
    return restTemplate.postForObject(url, request, String.class, uriVariables);
  }
}
